<div class="layui-card-body">
    <form class="layui-form" action="{:url()}"  method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">请假时间</label>
            <div class="layui-input-block">
                <input type="text" name="s_time" value="" class="layui-input" autocomplete="off"
                       placeholder="选择请假时间" id="no_time">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">请假类型</label>
            <div class="layui-input-block">
                <select name="no_time" lay-search>
                    <volist name="no_time" id="vo" key="k">
                        <option value="{$key}"> {$vo} </option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">请假事由</label>
            <div class="layui-input-block">
                <textarea type="text" name="info"  class="layui-textarea" autocomplete="off"
                          placeholder="输入事由，如是半日请注明"></textarea>
            </div>
        </div>
    </form>
</div>

<script type="text/javascript">
    layui.use(['form', 'layer', 'formSelects'], function () {
        var form = layui.form
            , formSelects = layui.formSelects
            , $ = layui.$
            , laydate = layui.laydate;
        laydate.render({
            elem: '#no_time'
            ,range: true //或 range: '~' 来自定义分割字符
        });

    });

</script>






